home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / bug / initramfs-tools / script
Text File  |  2008-06-11  |  645b  |  40 lines

  1. #!/bin/sh
  2.  
  3. exec >&3
  4.  
  5. echo "-- /proc/cmdline"
  6. cat /proc/cmdline
  7. echo
  8.  
  9. echo "-- /proc/filesystems"
  10. grep -v nodev /proc/filesystems
  11. echo
  12.  
  13. echo "-- lsmod"
  14. lsmod
  15. echo
  16.  
  17. if [ -r /etc/kernel-img.conf ]; then
  18.     echo "-- /etc/kernel-img.conf"
  19.     cat /etc/kernel-img.conf
  20.     echo
  21. fi
  22.  
  23. if [ -r /etc/initramfs-tools/initramfs.conf ]; then
  24.     echo "-- /etc/initramfs-tools/initramfs.conf"
  25.     sed 's/#.*$//;/^[[:space:]]*$/d' /etc/initramfs-tools/initramfs.conf
  26.     echo
  27. fi
  28.  
  29. if [ -r /etc/crypttab ]; then
  30.     echo "-- /etc/crypttab"
  31.     cat /etc/crypttab
  32.     echo
  33. fi
  34.  
  35. if grep -q "MODULES=dep" /etc/initramfs-tools/initramfs.conf ; then
  36.     echo "-- /sys/block"
  37.     ls /sys/block
  38.     echo
  39. fi
  40.